<template>
  <div class="md-manage-ge-ren-zi-liao">
    <div class="user-info">
      <div class="user-avatar">
        <img :src="`/vide0-dev${userInfo.avatar}`" alt="">
      </div>
      <ul>
        <li>
          <b>用户名：</b>
          <span>{{userInfo.userName}}</span>
        </li>
        <li>
          <b>用户ID：</b>
          <span>{{userInfo.userId}}</span>
        </li>
        <li>
          <b>用户IP：</b>
          <span>{{userInfo.loginIp}}</span>
        </li>
        <li>
          <b>手机号：</b>
          <span>{{userInfo.phonenumber}}</span>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: 'MdManageGeRenZiLiaoComponent',
  computed: {
    isLogin () {
      return window.localStorage.getItem('isLogin')
    },
    userInfo () {
      return JSON.parse(window.localStorage.getItem('userInfo'))
    }
  }
}
</script>
<style lang="less" scoped>
.md-manage-ge-ren-zi-liao {
  width: 100%;
  background: #fff;
  .user-info {
    padding: 0 20px;
    box-sizing: border-box;
    .user-avatar {
      border: 4px solid #fff;
      box-shadow: 0 4px 8px 0 rgba(7,17,27,.1);
      width: 140px;
      height: 140px;
      border-radius: 50%;
      background: #fff;
      overflow: hidden;
      flex-shrink: 0;
      margin-bottom: 10px;
      img {
        width: 100%;
        height: 100%;
      }
    }
    ul {
      li {
        margin-bottom: 15px;
        b {
          font-size: 14px;
          color: #333;
        }
        span {
          font-size: 14px;
          color: #555;
        }
      }
    }
  }
}
</style>